<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
<script src="https://www.layuicdn.com/layui/layui.js"></script>
<div class="loginBorder">
    <div class="loginBorder1st">
        <div>
            <img class="loginLogo" src="./img/qrcode.png" alt="">
            <div>  | 企业会员登录</div>
        </div>
        <img class="loginBordermap" src="./img/qrcode.png" alt="">
    </div>
    <div class="loginBorder2th">
        <div>
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li class="layui-this">账号密码登录</li>
                    <li>手机验证码登录</li>
                </ul>
                <div class="layui-tab-content"></div>
            </div>
            <input type="texttext" placeholder="请输入用户名">
            <input type="password" placeholder="请输入密码">
            <div class="loginBorderdiv">
                <div><a href="">忘记密码</a></div>
                <div class="loginBorderdiv"><input style="margin-top: 0" type="checkbox" lay-skin="primary">&nbsp; 记住我的登录状态</div>
            </div>
            <div class="loginBottomTrue">登录</div>
            <div class="XW-set">你还没有账号?<span><a href="" style="color: #409EFF"> 立即注册</a></span></div>
        </div>
    </div>
</div>
<script>
    setTimeout(function(){
        layui.use(['layer', 'laydate', 'form', 'element'], function () {
            var layer = layui.layer;
            var element = layui.element;
            var layid = location.hash.replace(/^#test1=/, '');
            element.tabChange('test1', layid); //假设当前地址为：http://a.com#test1=222，那么选项卡会自动切换到“发送消息”这一项
            element.on('tab(test1)', function () {
                location.hash = 'test1=' + this.getAttribute('lay-id');
            });
            layui.element.init();
        })
    }, 500);

</script>
